{% load static %}
<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8">
		<link rel="stylesheet" type="text/css" href="{% static 'css/per_center.css' %}"/>
		<title>个人中心</title>
	</head>
	<body>
		<div class="navigation">
				<img src="{% static 'img/LOGOOOO.png' %}" class="Logo">
				<a href="{% url 'start_views' %}" class="before">寻物启事</a>
				<a href="" class="before">失物招领</a>
				<a href="{% url 'publish' %}" class="before">发布帖子</a>
				<a href="{% url 'about' %}" class="last">关于</a>
                <a href="{% url 'per_center' %}" class="last">个人中心</a>
		</div>
		<div class="per_center">
			<img src="{% static 'img/1_1645788470.jpg' %}"  alt="头像">
			<div class="content">
				<p>昵称：{{ user.user_name }}</p>
				<p>id：{{ user.user_id }}</p>
			</div>
		</div>
		<div class="release public_container">
            <h2 class="typ">寻物启示：</h2>
            {% for o_object in o_objects %}
			<div class="box" onclick="window.open('start_views_details?id={{ o_object.id }}','_self')">
				<img src="img/img-1.jpg" alt="图片" class="pictures">
					<ul>
						<li>物品名称：{{ o_object.o_name }}</li>
						<li>物品详情：{{ o_object.o_detail }}</li>
					</ul>
			</div>
			{% endfor %}
            <h2 class="typ">失物招领：</h2>
            {% for r_object in r_objects %}
			<div class="box" onclick="window.open('second_views_details?id={{ r_object.id }}','_self')">
				<img src="img/img-1.jpg" alt="图片" class="pictures">
					<ul>
						<li>物品名称：{{ r_object.r_name }}</li>
						<li>物品详情：{{ r_object.r_detail }}</li>
					</ul>
			</div>
            {% endfor %}
            <form action="/per_center/login_out/" method="post">
                {% csrf_token %}
			<button class="out_load" name="sumbit">退出登录</button>
            </form>>
		</div>
	</body>
</html>
